//! @Author: DengLibin
//! @Date: Create in 2023-11-07 10:36:50
//! @Description: 用户业务
use std::sync::Arc;

use crate::{
    entity::User,
    global::{AppState, GlobalResult}, dao::user_dao,
};

/// @Author: DengLibin
/// @Date: Create in 2023-11-07 12:18:39
/// @Description: 查询用户列表
pub async fn list(app_state: Arc<AppState>) -> GlobalResult<Vec<User>> {
    user_dao::list(app_state).await
}